﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Week3_1_Entity.Enum;

namespace Week3_1_Entity
{
    /// <summary>
    /// 订单
    /// </summary>
    [Table("Order")]
    public class Order
    {
        [Key]
        public int Oid { get; set; }//订单ID
        public string? OCode {  get; set; }//订单编码
        public decimal OsumPrice {  get; set; }//总价格
        public OrderState OrderState {  get; set; }//订单状态
        public PayType PayType {  get; set; }//订单支付方式
        public string? Aname {  get; set; }//收货人
        public string? Adder {  get; set; }//收货人地址
        public string? Aphone {  get; set; }//收货人电话
        public int Uid { get; set; }//用户ID
        public DateTime ODate {  get; set; }//下单时间
        public bool IsDel {  get; set; }//逻辑删除
    }
}
